#define _CRT_SECURE_NO_WARNINGS
#include<math.h>
bool judgeSquareSum(int c) {
    long i;
    double j;
    for (i = 0; i * i <= c; i++)
    {
        j = sqrt(c - i * i);
        if (j == (int)j) 
        {
            return true;
        }
    }
    return false;
}